#include <stdio.h>
#include<string.h>
struct student
{
    float a;
    float b;
    float c;
    float d;
    float e;
}s1[5];
int main()
{
    for(int j=0;j<5;j++)
    {
        scanf("%f %f %f %f %f",&(s1[j].a),&(s1[j].b),&(s1[j].c),&(s1[j].d),&(s1[j].e));
    }
    for(int i=0;i<5;i++)
    {
        printf("%.1f %.1f %.1f %.1f %.1f %.1f",s1[i].a,s1[i].b,s1[i].c,s1[i].d,s1[i].e,s1[i].a+s1[i].b+s1[i].c+s1[i].d+s1[i].e);
        printf("\n");
    }
    return 0;
}
